package com.qf.mapper;



import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qf.pojo.Employee;
import com.qf.pojo.EmployeeVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface EmployeeMapper extends BaseMapper<Employee> {


    public EmployeeVo findEmpAndDeptById(int empId);

    public List<EmployeeVo> findEmpsAndDept();



//    public Employee findEmpAndDeptLazyById(int empId);

    public List<Employee> findEmpWithIf(Employee employee);

    public List<Employee> findEmpByIds(List<Integer> ids);

    public List<Employee> findEmpWithChoose(Employee employee);

    public int updateWithSet(Employee employee);

    public Employee selectEmpCountByDeptId(Integer empDeptId);

    public Employee findEmpById(Integer empId);





    public Employee findEmpByName(String empName);





    public List<Employee> findAllEmp();

    public int insertOneEmp(Employee employee);

    public int deleteOneEmp(Integer empId);

    public int updateOneEmp(Employee employee);



}
